﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://wubiyu.cnblogs.com">
<head>
      <title></title>
      <link href="../../Theme/DomExtGray/gray.min.css" rel="Stylesheet" type="text/css" />
      <link href="PageModel.css" rel="Stylesheet" type="text/css" />
      <script type="text/javascript" src="../../domExt.min.js"></script>
</head>
<body>
      <div class="fun_title">
            _h.GetPageSize();
      </div>
      <div class="fun_content">
            描述：获取网页的宽，高和窗口(不包括IE菜单栏，工具栏，边框等)的宽，高。<br />
       </div>
      <div class="fun_title2">
            参数:
      </div>
      <div class="fun_content2">
            <strong>Retrun:</strong><br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            返回对象：{pw:"网页宽度",ph:"网页高度",ww:"窗口宽度",wh:"窗口高度"}<br /><br />
      </div>
      <div class="fun_title2">
            示例:
      </div>
      <div class="code">
            &lt;script type=&quot;text/javascript&quot;&gt;<br />
&nbsp;&nbsp;&nbsp; var p = _h.GetPageSize();
            <br />
&nbsp;&nbsp;&nbsp; alert(&quot;pw=&quot; + p.pw + &quot; ph=&quot; + p.ph + &quot; ww=&quot; + p.ww + &quot; wh=&quot; + p.wh);<br />
            &lt;/script&gt;</div>
      <br />
      <h:btn onclick="run_click();">执行脚本</h:btn>
      <div id="htmltemp" style="display:none;"></div>
      <script type="text/javascript">
            function run_click() {
                  var p = _h.GetPageSize();
                  alert("pw=" + p.pw + " ph=" + p.ph + " ww=" + p.ww + " wh=" + p.wh);
            }
      </script>
</body>
</html>
